#ifndef SCREENMANAGER_H
#define SCREENMANAGER_H


#include <QObject>
#include <QMap>
#include <QScreen>
#include <QWidget>
#include <QMainWindow>
#include <QDesktopWidget>
#include <QApplication>

class ScreenManager : public QObject
{
    Q_OBJECT
public:
    explicit ScreenManager(QObject *parent = nullptr);

    void setPrimaryScreenWidget(QMainWindow* widget, QList<QString> styles);
    void setPrimaryScreenWidget(QMainWindow* widget);
    void setSubScreenWidget(QMainWindow* widget);
    int curMainWindow();

public slots:
    void showFullScreenAll();
    void onPrimaryScreenChanged(QScreen* screen);
    void onScreenAdded(QScreen* screen);
    void onScreenRemoved(QScreen* screen);
private:
    QList<QMainWindow*> mListSubwindow;
    QMainWindow* mPrimaryWidget;
    QList<QString> mPrimaryWindowStyles;
    int cur_w;
};

#endif // SCREENMANAGER_H
